package com.zhan.ielts.enums;

/**
 * Created by tlfu on 2016/7/25.
 */
public enum ProductTypeEnum {
    ciGen("词根词缀拓展包"), hDAudio("高品质付费语音包"), wCorrect("作文批改"), sunlight("阳光");


    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private String desc;

    private ProductTypeEnum(String desc) {
        this.desc = desc;
    }

    public static String getdescByType(String type) {
        for (ProductTypeEnum e : ProductTypeEnum.values()) {
            if (e.toString().equals(type)) {
                return e.getDesc();
            }
        }
        return null;
    }
}
